package com.archstoday.entity;

import java.util.List;

public class CommentToEntity {

    /**
     * data : [{"article":{"articleId":3,"categoryId1":1,"createTime":0},"reply":{"commentId":9,"commentText":"呵呵","createTime":1510022690000,"likes":0,"userId":3,"userIdReplied":0,"userName":"四十七"},"rootComment":{"commentId":7,"commentText":"上市说了好久","createTime":0,"likes":0,"userId":3,"userIdReplied":0,"userName":"四十七"}},{"article":{"articleId":3,"categoryId1":1,"createTime":0},"reply":{"commentId":8,"commentText":"是的","createTime":1510022680000,"likes":0,"userId":3,"userIdReplied":0,"userName":"四十七"},"rootComment":{"commentId":7,"commentText":"上市说了好久","createTime":0,"likes":0,"userId":3,"userIdReplied":0,"userName":"四十七"}}]
     * msg : 成功
     * status : 200
     * total : 2
     */

    private String msg;
    private int status;
    private int total;
    private List<DataBean> data;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * article : {"articleId":3,"categoryId1":1,"createTime":0}
         * reply : {"commentId":9,"commentText":"呵呵","createTime":1510022690000,"likes":0,"userId":3,"userIdReplied":0,"userName":"四十七"}
         * rootComment : {"commentId":7,"commentText":"上市说了好久","createTime":0,"likes":0,"userId":3,"userIdReplied":0,"userName":"四十七"}
         */

        private ArticleBean article;
        private ReplyBean reply;
        private RootCommentBean rootComment;

        public ArticleBean getArticle() {
            return article;
        }

        public void setArticle(ArticleBean article) {
            this.article = article;
        }

        public ReplyBean getReply() {
            return reply;
        }

        public void setReply(ReplyBean reply) {
            this.reply = reply;
        }

        public RootCommentBean getRootComment() {
            return rootComment;
        }

        public void setRootComment(RootCommentBean rootComment) {
            this.rootComment = rootComment;
        }

        public static class ArticleBean {
            /**
             * articleId : 3
             * categoryId1 : 1
             * createTime : 0
             */

            private int articleId;
            private int categoryId1;
            private int createTime;

            public int getArticleId() {
                return articleId;
            }

            public void setArticleId(int articleId) {
                this.articleId = articleId;
            }

            public int getCategoryId1() {
                return categoryId1;
            }

            public void setCategoryId1(int categoryId1) {
                this.categoryId1 = categoryId1;
            }

            public int getCreateTime() {
                return createTime;
            }

            public void setCreateTime(int createTime) {
                this.createTime = createTime;
            }
        }

        public static class ReplyBean {
            /**
             * commentId : 9
             * commentText : 呵呵
             * createTime : 1510022690000
             * likes : 0
             * userId : 3
             * userIdReplied : 0
             * userName : 四十七
             */

            private int commentId;
            private String commentText;
            private long createTime;
            private int likes;
            private int userId;
            private int userIdReplied;
            private String userName;

            public int getCommentId() {
                return commentId;
            }

            public void setCommentId(int commentId) {
                this.commentId = commentId;
            }

            public String getCommentText() {
                return commentText;
            }

            public void setCommentText(String commentText) {
                this.commentText = commentText;
            }

            public long getCreateTime() {
                return createTime;
            }

            public void setCreateTime(long createTime) {
                this.createTime = createTime;
            }

            public int getLikes() {
                return likes;
            }

            public void setLikes(int likes) {
                this.likes = likes;
            }

            public int getUserId() {
                return userId;
            }

            public void setUserId(int userId) {
                this.userId = userId;
            }

            public int getUserIdReplied() {
                return userIdReplied;
            }

            public void setUserIdReplied(int userIdReplied) {
                this.userIdReplied = userIdReplied;
            }

            public String getUserName() {
                return userName;
            }

            public void setUserName(String userName) {
                this.userName = userName;
            }
        }

        public static class RootCommentBean {
            /**
             * commentId : 7
             * commentText : 上市说了好久
             * createTime : 0
             * likes : 0
             * userId : 3
             * userIdReplied : 0
             * userName : 四十七
             */

            private int commentId;
            private String commentText;
            private int createTime;
            private int likes;
            private int userId;
            private int userIdReplied;
            private String userName;

            public int getCommentId() {
                return commentId;
            }

            public void setCommentId(int commentId) {
                this.commentId = commentId;
            }

            public String getCommentText() {
                return commentText;
            }

            public void setCommentText(String commentText) {
                this.commentText = commentText;
            }

            public int getCreateTime() {
                return createTime;
            }

            public void setCreateTime(int createTime) {
                this.createTime = createTime;
            }

            public int getLikes() {
                return likes;
            }

            public void setLikes(int likes) {
                this.likes = likes;
            }

            public int getUserId() {
                return userId;
            }

            public void setUserId(int userId) {
                this.userId = userId;
            }

            public int getUserIdReplied() {
                return userIdReplied;
            }

            public void setUserIdReplied(int userIdReplied) {
                this.userIdReplied = userIdReplied;
            }

            public String getUserName() {
                return userName;
            }

            public void setUserName(String userName) {
                this.userName = userName;
            }
        }
    }
}